/*

Author   : chaos

FileName : exp_con.cpp

Date     : 13/08/17 19:11:18

*/
#include <iostream>
#include <cstring>

using namespace std;

class String
{
    private:
        char* string;
        long len;
    public:
        String(const char * i_string);
        explicit String(int = 0);
        ~String() {delete [] string;}
};


String::String(const char* i_string)
{
    len = strlen(i_string);
    string = new char [len + 1];
    strcpy(string,i_string);
}

String::String(int size)
{
    cout << "Explicit Constructor !" << endl;

    string = new char [size];
}

void convert(String a_string){cout << "Test" << endl;};

int main(int argc ,char *argv[])
{
    String a_string(12);

    //convert(12);
    cout << " >>>>>before convert " << endl;
    convert(String(12));
    return 0;
}
